﻿namespace CloudNinja.Metering.Data
{
    using System.Text;

    public class ClientApiKeyStore : IApiKeyStore
    {
        private readonly string apiKey;

        public ClientApiKeyStore(string apiKey)
        {
            this.apiKey = apiKey;
        }

        public byte[] GetServiceKey(string userId)
        {
            return Encoding.UTF8.GetBytes(this.apiKey);
        }
    }
}